matplotlib save figure
Tips
Save transparent figures
https://matplotlib.org/faq/howto_faq.html#save-transparent-figures
Save multiple plots to one pdf file
https://matplotlib.org/faq/howto_faq.html#save-multiple-plots-to-one-pdf-file
Exporting from matplotlib to open in Adobe Illustrator
http://jonathansoma.com/lede/data-studio/matplotlib/exporting-from-matplotlib-to-open-in-adobe-illustrator/
When you do not need to display plot
code:python
plt.switch_backend('Agg')